package leetcode.acm;

/**
 * @author mazouri
 * @create 2021-09-26 19:17
 */
public class _3306_01串 {
    public static void main(String[] args) {
        for (int i = 0; i < 32; i++) {
            StringBuilder num = new StringBuilder(changeTwo(i));
            while (num.length()<5){
                num.insert(0, "0");
            }
            System.out.println(num.toString());
        }
    }

    private static String changeTwo(int i) {
        StringBuilder res = new StringBuilder();
        while (i!=0){
            res.insert(0,i%2);
            i = i/2;
        }
        return res.toString();
    }
}
